package mMap;

import javax.swing.text.html.parser.Entity;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;

/**
 * @Author: Jie
 * @Date: 2019/4/16 18:20
 * @Function :
 */
public class TestHashMapIsRankKey {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        char a = 97;

        System.out.println(String.valueOf(a)+" "+(int)(Character.MIN_VALUE +1)+ "  "+(int)(Character.MAX_VALUE-0xfffc));
        Random random = new Random();

        for (int i = 0; i < 10000; i++) {

            int i1 = random.nextInt(26);

            map.put(String.valueOf((char) (a+i1)),"value"+i1);
        }

        for(Map.Entry<String,String> str : map.entrySet()){
            System.out.println(str.getKey()+"  "+str.getValue());
        }

    }
}
